package com.boss.example.service.impl;

import com.boss.example.mapper.FunsMapper;
import com.boss.example.service.FunsService;
import com.boss.example.entity.dto.FunsDTO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class FunsServiceImpl implements FunsService {
    @Resource
    FunsMapper funMapper;

    @Override
    public int updateFunction(FunsDTO funDTO) {
        return funMapper.updateFunction(funDTO);
    }

    @Override
    public int insertFunction(FunsDTO funDTO) {
        return funMapper.insertFunction(funDTO);
    }

    @Override
    public int deleteFunction(Integer menuId) {
        return funMapper.deleteFunction(menuId);
    }

    @Override
    public List<FunsDTO> getFunctionByMenuId(Integer menuId) {
        return funMapper.getFunctionByMenuId(menuId);
    }

}
